#ifndef EMAIL_RECEIVEDNODE_H
#define EMAIL_RECEIVEDNODE_H

#include "EmailNode.h"
#include "ExtendedDomain.h"
#include "MailBox.h"
#include "AddressSpec.h"
#include "MsgId.h"

namespace email{

	class ReceivedNode : public EmailNode
	{
	private:
		ExtendedDomain from;
		ExtendedDomain by;
		QString via;
		QString idstring;
		MsgId msgid;
		QList<AddressSpec> forpathlist;
		QList<MailBox> formailboxlist;
		DateTime datetime;
	public:
		ExtendedDomain &getFromRef() {return from;}
		ExtendedDomain &getByRef() {return by;}
		QString &getViaRef() {return via;}
		QString &getIdstring() {return idstring;}
		MsgId &getMsgidRef() {return msgid;}
		QList<AddressSpec> &getForPathListRef() {return forpathlist;}
		QList<MailBox> &getForMailBoxListRef() {return formailboxlist;}
		DateTime &getDateTimeRef() {return datetime;}
		virtual void parse(QString str){}
		virtual QString toString(){return "";}
		virtual void toDisplayString(QXmlStreamWriter & writer){}
		virtual void toXMLString(QXmlStreamWriter & writer){}
	};
}

#endif